package com.ziki.framework.wicket.markup.html.list;

import java.util.List;

import org.apache.wicket.markup.html.list.ListItem;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.IModel;

public class FwListPanel<T extends Panel> extends FwListView<T> {
    private static final long serialVersionUID = 1L;

    public FwListPanel(String id, IModel<? extends List<? extends T>> model) {
        super(id, model);
    }

    public FwListPanel(String id, List<? extends T> list) {
        super(id, list);
    }

    @Override
    protected void populateItem(ListItem<T> item) {
        item.add(item.getModelObject());
    }

}
